//
//  Header.h
//  ZZGallerySliderViewDemo
//
//  Created by chester on 14-7-28.
//  Copyright (c) 2014年 zhangzhi. All rights reserved.
//

// ---------宏定义-----------
//#ifndef ___Header_h
//#define ___Header_h

//获取当前的语言
#define CurrentLanguage ([[NSLocale preferredLanguages] objectAtIndex:0])

// 获取当前手机的版本

#define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue]
#define CurrentSystemVersion [[UIDevice currentDevice] systemVersion]

// 获取当前屏幕尺寸
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)
#define CELL_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define CELL_HEIGHT ([UIScreen mainScreen].bounds.size.height) / (([UIScreen mainScreen].bounds.size.height) / 100)

//判断是否 Retina屏、设备是否%fhone 5、是否是iPad
//#define isRetina ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)
//
//#define iPhone3 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(320, 480), [[UIScreen mainScreen] currentMode].size) : NO)
//#define iPhone4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)
//#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)
//#define iPhone6 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) : NO)
//#define iPhone6p ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(828, 1472), [[UIScreen mainScreen] currentMode].size) : NO)


#define RespondToSel_CurrMode [UIScreen instancesRespondToSelector:@selector(currentMode)]
#define iPhone3RealSize CGSizeMake(320, 480)
#define iPhone4RealSize CGSizeMake(640, 960)
#define iPhone5RealSize CGSizeMake(640, 1136)
#define iPhone6RealSize CGSizeMake(750, 1334)
#define iPhone6PlusRealSize CGSizeMake(828, 1472)
#define CurrentDeviceRealSize [[[UIScreen mainScreen] currentMode] size]
//是否为iphone5 的尺寸
#define iPhone5 RespondToSel_CurrMode && CGSizeEqualToSize(iPhone5RealSize, CurrentDeviceRealSize)
//是否为iOS 7.0
#define iOS7 [[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0
#define NeedHightForiPhone5 568
#define NeedHightForiPhone4 480

#define Height iPhone5 ? NeedHightForiPhone5 : NeedHightForiPhone4



//#endif








